public class Student1Test {
    public static void main(String[] args) {
        Student1 student1=new Student1();
        student1.name="小强";
        Student1 student2=new Student1();
        student2=student1;
        student2.name="小芳";
        System.out.println(student1.name+"-----"+student2.name);
    }
}
